<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
    <title>FcConnector</title>
    <link href="../../../images/logo-icon.svg" rel="icon" type="image/svg">
    <script>var pathToRoot = "../../../";</script>
    <script>const storage = localStorage.getItem("dokka-dark-mode")
    if (storage == null) {
        const osDarkSchemePreferred = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
        if (osDarkSchemePreferred === true) {
            document.getElementsByTagName("html")[0].classList.add("theme-dark")
        }
    } else {
        const savedDarkMode = JSON.parse(storage)
        if(savedDarkMode === true) {
            document.getElementsByTagName("html")[0].classList.add("theme-dark")
        }
    }
    </script>
<script type="text/javascript" src="../../../scripts/sourceset_dependencies.js" async="async"></script>
<link href="../../../styles/style.css" rel="Stylesheet">
<link href="../../../styles/jetbrains-mono.css" rel="Stylesheet">
<link href="../../../styles/main.css" rel="Stylesheet">
<link href="../../../styles/prism.css" rel="Stylesheet">
<link href="../../../styles/logo-styles.css" rel="Stylesheet">
<script type="text/javascript" src="../../../scripts/clipboard.js" async="async"></script>
<script type="text/javascript" src="../../../scripts/navigation-loader.js" async="async"></script>
<script type="text/javascript" src="../../../scripts/platform-content-handler.js" async="async"></script>
<script type="text/javascript" src="../../../scripts/main.js" defer="defer"></script>
<script type="text/javascript" src="../../../scripts/prism.js" async="async"></script>
<script type="text/javascript" src="../../../scripts/symbol-parameters-wrapper_deferred.js" defer="defer"></script>
</head>
<body>
<div class="navigation-wrapper" id="navigation-wrapper">
    <div id="leftToggler"><span class="icon-toggler"></span></div>
    <div class="library-name">
            <a href="../../../index.html">
                    <span>libraryProtocol2</span>
            </a>
    </div>
    <div>
    </div>
    <div class="pull-right d-flex">
        <div class="filter-section" id="filter-section">
                <button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":libraryProtocol2:dokkaHtml/release">androidJvm</button>
        </div>
        <button id="theme-toggle-button"><span id="theme-toggle"></span></button>
        <div id="searchBar"></div>
    </div>
</div>
<div id="container">
    <div id="leftColumn">
        <div id="sideMenu"></div>
    </div>
    <div id="main">
<div class="main-content" data-page-type="classlike" id="content" pageIds="libraryProtocol2::com.topstep.fitcloud.sdk.v2/FcConnector///PointingToDeclaration//-2029165615">
  <div class="breadcrumbs"><a href="../../../index.html">libraryProtocol2</a><span class="delimiter">/</span><a href="../index.html">com.topstep.fitcloud.sdk.v2</a><span class="delimiter">/</span><span class="current">FcConnector</span></div>
  <div class="cover ">
    <h1 class="cover"><span>Fc</span><wbr></wbr><span><span>Connector</span></span></h1>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">interface </span><a href="index.html">FcConnector</a></div><p class="paragraph">Use <a href="index.html">FcConnector</a> to connect/control the device, which is also the most important class in the SDK.</p><p class="paragraph"><strong>1.</strong><a href="connect.html"><strong>connect</strong></a><strong> and </strong><a href="close.html"><strong>close</strong></a></p><p class="paragraph"><a href="connect.html">connect</a> and <a href="close.html">close</a> are the most important connection methods.</p><p class="paragraph"><a href="index.html">FcConnector</a> will hold the devices passed in by the <a href="connect.html">connect</a> method. If the device disconnects, it will reconnect at the appropriate time. Such as at a certain interval of time, when the Bluetooth Adapter is available, the app enters the foreground and the phone screen on, etc.</p><p class="paragraph">So, <strong>you don't need to perform your own reconnect code outside of the SDK</strong>, and it is highly discouraged.</p><p class="paragraph"><a href="close.html">close</a> method will immediately disconnect the device, and clear the device hold by the <a href="index.html">FcConnector</a>.</p><p class="paragraph"><strong>2.observer connection state and error</strong></p><p class="paragraph">Use <a href="observer-connector-state.html">observerConnectorState</a> to observer connection state</p><p class="paragraph">Use <a href="observer-connector-error.html">observerConnectorError</a> to observer connection error</p><p class="paragraph"><strong>3.disconnect and reconnect</strong></p><p class="paragraph">Different from the <a href="close.html">close</a> method. The <a href="disconnect.html">disconnect</a> method does not clear device hold by <a href="index.html">FcConnector</a>. Similarly, the <a href="reconnect.html">reconnect</a> method only triggers the connection of the device held.</p><p class="paragraph">When you need to temporarily disconnect, you can use the <a href="disconnect.html">disconnect</a> method. Afterwards, the <a href="reconnect.html">reconnect</a> method can be used to connect.</p><p class="paragraph">It should be noted that even if you do not call <a href="reconnect.html">reconnect</a>, the connection may still trigger, such as when the app enters the foreground, because <a href="index.html">FcConnector</a> held the device in the internal.</p><p class="paragraph"><strong>4.Reconnect strategy</strong></p><p class="paragraph"><a href="index.html">FcConnector</a> will try to maintain a connection with the device as much as possible.</p><p class="paragraph">When the device disconnects or fails to connect, it will delay for 5 seconds in attempting to reconnect.</p><p class="paragraph">But when the app is in the background, the attempt time will increase with the number of failures, in order to save power.</p><p class="paragraph">You can enable high-frequency reconnection in the background through <a href="../-fc-s-d-k/set-re-connect-frequent.html">FcSDK.setReConnectFrequent</a>.</p><p class="paragraph">In addition, after the connection is disconnected, the following scenarios will also trigger a reconnection:</p><ul><li><p class="paragraph">The Bluetooth Adapter is available</p></li><li><p class="paragraph">The app enters the foreground</p></li><li><p class="paragraph">The phone screen on</p></li></ul></div></div>
  </div>
  <div class="tabbedcontent">
    <div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="CONSTRUCTOR,TYPE,FUNCTION,PROPERTY">Members</button></div>
    <div class="tabs-section-body">
      <div data-togglable="FUNCTION">
        <h2 class="">Functions</h2>
        <div class="table"><a data-name="-305102125%2FFunctions%2F-2029165615" anchor-label="close" id="-305102125%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="close.html"><span><span>close</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-305102125%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="close.html"><span class="token function">close</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">Disconnect and clear the device hold by this connector</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="-1150422793%2FFunctions%2F-2029165615" anchor-label="configFeature" id="-1150422793%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="config-feature.html"><span>config</span><wbr></wbr><span><span>Feature</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1150422793%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="config-feature.html"><span class="token function">configFeature</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../../com.topstep.fitcloud.sdk.v2.features/-fc-config-feature/index.html">FcConfigFeature</a></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="-1245661833%2FFunctions%2F-2029165615" anchor-label="connect" id="-1245661833%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="connect.html"><span><span>connect</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1245661833%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="connect.html"><span class="token function">connect</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">device<span class="token operator">: </span><span data-unresolved-link="android.bluetooth/BluetoothDevice///PointingToDeclaration/">BluetoothDevice</span><span class="token punctuation">, </span></span><span class="parameter ">userId<span class="token operator">: </span><span data-unresolved-link="kotlin/String///PointingToDeclaration/">String</span><span class="token punctuation">, </span></span><span class="parameter ">bindOrLogin<span class="token operator">: </span><span data-unresolved-link="kotlin/Boolean///PointingToDeclaration/">Boolean</span><span class="token punctuation">, </span></span><span class="parameter ">sex<span class="token operator">: </span><span data-unresolved-link="kotlin/Boolean///PointingToDeclaration/">Boolean</span><span class="token punctuation">, </span></span><span class="parameter ">age<span class="token operator">: </span><span data-unresolved-link="kotlin/Int///PointingToDeclaration/">Int</span><span class="token punctuation">, </span></span><span class="parameter ">height<span class="token operator">: </span><span data-unresolved-link="kotlin/Float///PointingToDeclaration/">Float</span><span class="token punctuation">, </span></span><span class="parameter ">weight<span class="token operator">: </span><span data-unresolved-link="kotlin/Float///PointingToDeclaration/">Float</span></span></span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">Connect with BluetoothDevice.</p></div><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="connect.html"><span class="token function">connect</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">device<span class="token operator">: </span><span data-unresolved-link="com.polidea.rxandroidble3/RxBleDevice///PointingToDeclaration/">RxBleDevice</span><span class="token punctuation">, </span></span><span class="parameter ">userId<span class="token operator">: </span><span data-unresolved-link="kotlin/String///PointingToDeclaration/">String</span><span class="token punctuation">, </span></span><span class="parameter ">bindOrLogin<span class="token operator">: </span><span data-unresolved-link="kotlin/Boolean///PointingToDeclaration/">Boolean</span><span class="token punctuation">, </span></span><span class="parameter ">sex<span class="token operator">: </span><span data-unresolved-link="kotlin/Boolean///PointingToDeclaration/">Boolean</span><span class="token punctuation">, </span></span><span class="parameter ">age<span class="token operator">: </span><span data-unresolved-link="kotlin/Int///PointingToDeclaration/">Int</span><span class="token punctuation">, </span></span><span class="parameter ">height<span class="token operator">: </span><span data-unresolved-link="kotlin/Float///PointingToDeclaration/">Float</span><span class="token punctuation">, </span></span><span class="parameter ">weight<span class="token operator">: </span><span data-unresolved-link="kotlin/Float///PointingToDeclaration/">Float</span></span></span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">Connect with RxBleDevice.</p></div><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="connect.html"><span class="token function">connect</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">address<span class="token operator">: </span><span data-unresolved-link="kotlin/String///PointingToDeclaration/">String</span><span class="token punctuation">, </span></span><span class="parameter ">userId<span class="token operator">: </span><span data-unresolved-link="kotlin/String///PointingToDeclaration/">String</span><span class="token punctuation">, </span></span><span class="parameter ">bindOrLogin<span class="token operator">: </span><span data-unresolved-link="kotlin/Boolean///PointingToDeclaration/">Boolean</span><span class="token punctuation">, </span></span><span class="parameter ">sex<span class="token operator">: </span><span data-unresolved-link="kotlin/Boolean///PointingToDeclaration/">Boolean</span><span class="token punctuation">, </span></span><span class="parameter ">age<span class="token operator">: </span><span data-unresolved-link="kotlin/Int///PointingToDeclaration/">Int</span><span class="token punctuation">, </span></span><span class="parameter ">height<span class="token operator">: </span><span data-unresolved-link="kotlin/Float///PointingToDeclaration/">Float</span><span class="token punctuation">, </span></span><span class="parameter ">weight<span class="token operator">: </span><span data-unresolved-link="kotlin/Float///PointingToDeclaration/">Float</span></span></span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">Connect with <code class="lang-kotlin">FitCloud</code> device address. When the connection is successful, LOGIN or BIND the device and do some basic settings for it.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="-1701287713%2FFunctions%2F-2029165615" anchor-label="dataFeature" id="-1701287713%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="data-feature.html"><span>data</span><wbr></wbr><span><span>Feature</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1701287713%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="data-feature.html"><span class="token function">dataFeature</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../../com.topstep.fitcloud.sdk.v2.features/-fc-data-feature/index.html">FcDataFeature</a></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="1104803155%2FFunctions%2F-2029165615" anchor-label="disconnect" id="1104803155%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="disconnect.html"><span><span>disconnect</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1104803155%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="disconnect.html"><span class="token function">disconnect</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">Disconnect. Unlike <a href="close.html">close</a>, the device previously set through <a href="connect.html">connect</a> will not be cleared, and the connection will be triggered again at a certain time.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="1389868241%2FFunctions%2F-2029165615" anchor-label="getConnectorState" id="1389868241%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="get-connector-state.html"><span>get</span><wbr></wbr><span>Connector</span><wbr></wbr><span><span>State</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1389868241%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="get-connector-state.html"><span class="token function">getConnectorState</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><span data-unresolved-link="com.topstep.fitcloud.sdk.connector/FcConnectorState///PointingToDeclaration/">FcConnectorState</span></div><div class="brief "><p class="paragraph">Get current connection state</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="-2064445697%2FFunctions%2F-2029165615" anchor-label="getDevice" id="-2064445697%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="get-device.html"><span>get</span><wbr></wbr><span><span>Device</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-2064445697%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="get-device.html"><span class="token function">getDevice</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><span data-unresolved-link="android.bluetooth/BluetoothDevice///PointingToDeclaration/">BluetoothDevice</span><span class="token operator">?</span></div><div class="brief "><p class="paragraph">Get the device held by the connector if exist (<a href="connect.html">connect</a> is called and not <a href="close.html">close</a>). The device may be in any state. If it is not connected and Bluetooth is not turned off, it will actively try to connect</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="1283784982%2FFunctions%2F-2029165615" anchor-label="getDisconnectedReason" id="1283784982%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="get-disconnected-reason.html"><span>get</span><wbr></wbr><span>Disconnected</span><wbr></wbr><span><span>Reason</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1283784982%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="get-disconnected-reason.html"><span class="token function">getDisconnectedReason</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><span data-unresolved-link="com.topstep.fitcloud.sdk.connector/FcDisconnectedReason///PointingToDeclaration/">FcDisconnectedReason</span></div><div class="brief "><p class="paragraph">When state is <span data-unresolved-link="com.topstep.fitcloud.sdk.connector/FcConnectorState.DISCONNECTED///PointingToDeclaration/{&amp;quot;org.jetbrains.dokka.links.EnumEntryDRIExtra&amp;quot;:{&amp;quot;key&amp;quot;:&amp;quot;org.jetbrains.dokka.links.EnumEntryDRIExtra&amp;quot;}}">FcConnectorState.DISCONNECTED</span>, get the disconnected reason</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="1601198659%2FFunctions%2F-2029165615" anchor-label="getNextRetryTime" id="1601198659%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="get-next-retry-time.html"><span>get</span><wbr></wbr><span>Next</span><wbr></wbr><span>Retry</span><wbr></wbr><span><span>Time</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1601198659%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="get-next-retry-time.html"><span class="token function">getNextRetryTime</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><span data-unresolved-link="kotlin/Long///PointingToDeclaration/">Long</span></div><div class="brief "><p class="paragraph">When state is <span data-unresolved-link="com.topstep.fitcloud.sdk.connector/FcConnectorState.PRE_CONNECTING///PointingToDeclaration/{&amp;quot;org.jetbrains.dokka.links.EnumEntryDRIExtra&amp;quot;:{&amp;quot;key&amp;quot;:&amp;quot;org.jetbrains.dokka.links.EnumEntryDRIExtra&amp;quot;}}">FcConnectorState.PRE_CONNECTING</span>, get the timestamp of the next connection retry.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="568846316%2FFunctions%2F-2029165615" anchor-label="isBindOrLogin" id="568846316%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="is-bind-or-login.html"><span>is</span><wbr></wbr><span>Bind</span><wbr></wbr><span>Or</span><wbr></wbr><span><span>Login</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="568846316%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="is-bind-or-login.html"><span class="token function">isBindOrLogin</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><span data-unresolved-link="kotlin/Boolean///PointingToDeclaration/">Boolean</span></div><div class="brief "><p class="paragraph">When state is <span data-unresolved-link="com.topstep.fitcloud.sdk.connector/FcConnectorState.CONNECTED///PointingToDeclaration/{&amp;quot;org.jetbrains.dokka.links.EnumEntryDRIExtra&amp;quot;:{&amp;quot;key&amp;quot;:&amp;quot;org.jetbrains.dokka.links.EnumEntryDRIExtra&amp;quot;}}">FcConnectorState.CONNECTED</span>, determine whether the current connection is LOGIN mode or BIND mode.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="-964388672%2FFunctions%2F-2029165615" anchor-label="mediaControlExitSilentMode" id="-964388672%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="media-control-exit-silent-mode.html"><span>media</span><wbr></wbr><span>Control</span><wbr></wbr><span>Exit</span><wbr></wbr><span>Silent</span><wbr></wbr><span><span>Mode</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-964388672%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="media-control-exit-silent-mode.html"><span class="token function">mediaControlExitSilentMode</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">When you use <a href="../../com.topstep.fitcloud.sdk.v2.features/-fc-built-in-features/media-control.html">FcBuiltInFeatures.mediaControl</a>, but not use <a href="../../com.topstep.fitcloud.sdk.v2.features/-fc-built-in-features/telephony-control.html">FcBuiltInFeatures.telephonyControl</a> or not extent <a href="../../com.topstep.fitcloud.sdk.v2.utils.notification/-abs-phone-state-listener/index.html">AbsPhoneStateListener</a>, use this method to set built-in media controller to exit silent mode  when you telephony enter idle state.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="-1381315744%2FFunctions%2F-2029165615" anchor-label="messageFeature" id="-1381315744%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="message-feature.html"><span>message</span><wbr></wbr><span><span>Feature</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1381315744%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="message-feature.html"><span class="token function">messageFeature</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../../com.topstep.fitcloud.sdk.v2.features/-fc-message-feature/index.html">FcMessageFeature</a></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="2117853409%2FFunctions%2F-2029165615" anchor-label="musicControlNotificationListenerService" id="2117853409%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="music-control-notification-listener-service.html"><span>music</span><wbr></wbr><span>Control</span><wbr></wbr><span>Notification</span><wbr></wbr><span>Listener</span><wbr></wbr><span><span>Service</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="2117853409%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="music-control-notification-listener-service.html"><span class="token function">musicControlNotificationListenerService</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">service<span class="token operator">: </span><span data-unresolved-link="android.service.notification/NotificationListenerService///PointingToDeclaration/">NotificationListenerService</span><span class="token operator">?</span></span></span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">When you use <a href="../../com.topstep.fitcloud.sdk.v2.features/-fc-built-in-features/music-control.html">FcBuiltInFeatures.musicControl</a>, but not extend <a href="../../com.topstep.fitcloud.sdk.v2.utils.notification/-abs-notification-listener-service/index.html">AbsNotificationListenerService</a>, use this method to set the service to built-in music controller.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="-1719244494%2FFunctions%2F-2029165615" anchor-label="newDfuManager" id="-1719244494%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="new-dfu-manager.html"><span>new</span><wbr></wbr><span>Dfu</span><wbr></wbr><span><span>Manager</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1719244494%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="new-dfu-manager.html"><span class="token function">newDfuManager</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">logEnabled<span class="token operator">: </span><span data-unresolved-link="kotlin/Boolean///PointingToDeclaration/">Boolean</span><span class="token operator"> = </span><span class="token boolean">true</span><span class="token punctuation">, </span></span><span class="parameter ">fileDir<span class="token operator">: </span><span data-unresolved-link="java.io/File///PointingToDeclaration/">File</span><span class="token operator">?</span><span class="token operator"> = </span>null</span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../../com.topstep.fitcloud.sdk.v2.dfu/-fc-dfu-manager/index.html">FcDfuManager</a></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="-534655394%2FFunctions%2F-2029165615" anchor-label="observerConnectorError" id="-534655394%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="observer-connector-error.html"><span>observer</span><wbr></wbr><span>Connector</span><wbr></wbr><span><span>Error</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-534655394%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><div class="block"><div class="block"><span class="token annotation builtin">@</span><span data-unresolved-link="androidx.annotation/CheckResult///PointingToDeclaration/"><span class="token annotation builtin">CheckResult</span></span></div></div><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="observer-connector-error.html"><span class="token function">observerConnectorError</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><span data-unresolved-link="io.reactivex.rxjava3.core/Observable///PointingToDeclaration/">Observable</span><span class="token operator">&lt;</span><span class="token keyword"></span><span data-unresolved-link="com.topstep.fitcloud.sdk.connector/FcConnectorError///PointingToDeclaration/">FcConnectorError</span><span class="token operator">&gt;</span></div><div class="brief "><p class="paragraph">Observer the connection error. Error/Completed event will never be emit.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="1155373045%2FFunctions%2F-2029165615" anchor-label="observerConnectorState" id="1155373045%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="observer-connector-state.html"><span>observer</span><wbr></wbr><span>Connector</span><wbr></wbr><span><span>State</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1155373045%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><div class="block"><div class="block"><span class="token annotation builtin">@</span><span data-unresolved-link="androidx.annotation/CheckResult///PointingToDeclaration/"><span class="token annotation builtin">CheckResult</span></span></div></div><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="observer-connector-state.html"><span class="token function">observerConnectorState</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><span data-unresolved-link="io.reactivex.rxjava3.core/Observable///PointingToDeclaration/">Observable</span><span class="token operator">&lt;</span><span class="token keyword"></span><span data-unresolved-link="com.topstep.fitcloud.sdk.connector/FcConnectorState///PointingToDeclaration/">FcConnectorState</span><span class="token operator">&gt;</span></div><div class="brief "><p class="paragraph">Observer the connection state. Error/Completed event will never be emit.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="632359790%2FFunctions%2F-2029165615" anchor-label="productionFeature" id="632359790%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="production-feature.html"><span>production</span><wbr></wbr><span><span>Feature</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="632359790%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="production-feature.html"><span class="token function">productionFeature</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../../com.topstep.fitcloud.sdk.v2.features/-fc-production-feature/index.html">FcProductionFeature</a></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="-1321171116%2FFunctions%2F-2029165615" anchor-label="reconnect" id="-1321171116%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="reconnect.html"><span><span>reconnect</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1321171116%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="reconnect.html"><span class="token function">reconnect</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">Reconnect to the device if exist</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="824416856%2FFunctions%2F-2029165615" anchor-label="settingsFeature" id="824416856%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="settings-feature.html"><span>settings</span><wbr></wbr><span><span>Feature</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="824416856%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="settings-feature.html"><span class="token function">settingsFeature</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../../com.topstep.fitcloud.sdk.v2.features/-fc-settings-feature/index.html">FcSettingsFeature</a></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="1946797074%2FFunctions%2F-2029165615" anchor-label="specialFeature" id="1946797074%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="special-feature.html"><span>special</span><wbr></wbr><span><span>Feature</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1946797074%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="special-feature.html"><span class="token function">specialFeature</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../../com.topstep.fitcloud.sdk.v2.features/-fc-special-feature/index.html">FcSpecialFeature</a></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="-443673576%2FFunctions%2F-2029165615" anchor-label="telephonyControlPhoneStatePermission" id="-443673576%2FFunctions%2F-2029165615" data-filterable-set=":libraryProtocol2:dokkaHtml/release"></a>
          <div class="table-row" data-filterable-current=":libraryProtocol2:dokkaHtml/release" data-filterable-set=":libraryProtocol2:dokkaHtml/release">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="telephony-control-phone-state-permission.html"><span>telephony</span><wbr></wbr><span>Control</span><wbr></wbr><span>Phone</span><wbr></wbr><span>State</span><wbr></wbr><span><span>Permission</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-443673576%2FFunctions%2F-2029165615"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":libraryProtocol2:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword"></span><span class="token keyword">fun </span><a href="telephony-control-phone-state-permission.html"><span class="token function">telephonyControlPhoneStatePermission</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">If you use <a href="../../com.topstep.fitcloud.sdk.v2.features/-fc-built-in-features/telephony-control.html">FcBuiltInFeatures.telephonyControl</a>, you should use this method in any place <span data-unresolved-link="android/Manifest.permission/READ_PHONE_STATE/#/PointingToDeclaration/">Manifest.permission.READ_PHONE_STATE</span> may be granted</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
      <div class="footer">
        <span class="go-to-top-icon"><a href="#content" id="go-to-top-link"></a></span><span>© 2023 Copyright</span><span
                class="pull-right"><span>Generated by </span><a
                href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span>
      </div>
    </div>
</div>
</body>
</html>
